<?php

use think\facade\Route;

// 优惠券
Route::group('coupon', function () {
    // 查看优惠券
    Route::get('select', 'admin.Coupon/select');

    Route::group(function () {
        // 优惠券
        Route::get('recyclebin', 'admin.Coupon/recyclebin');
        Route::put('restore/:id', 'admin.Coupon/restore');
        Route::delete('destroy/:id', 'admin.Coupon/destroy');
        Route::post('send/:id', 'admin.Coupon/send');
        Route::resource('', 'admin.Coupon');
    })->middleware('check_rule');
});